package com.example.fragmentexample;

import com.usac.arqui1.grupo2.proyecto1.R;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

public class TextFragment extends Fragment {
	
    private static TextView textview;
	
    @Override
    public View onCreateView(LayoutInflater inflater, 
              ViewGroup container, Bundle savedInstanceState) {
        
        View view = inflater.inflate(R.layout.prueba_fragment2, 
                   container, false);
        
        textview = (TextView) view.findViewById(R.id.lblEditor);
    
        return view;
    }
    
    public void changeTextProperties(int fontsize, String text)
    {
    	textview.setTextSize(fontsize);
    	textview.setText(text);
    }  
}